<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../WEB-INF/template/user/userPageTemplateWhitoutSidebar.xhtml">

            <ui:define name="title">
                Visibility
            </ui:define>

            

            <ui:define name="content">
                
                <h:form class="centeredFormHight" id="visibilityForm">
                    <p:panel header="Visibility">
                    <p:fieldset legend="Visibility Policy" collapsed="true" toggleable="true" toggleSpeed="500">
                        
                        <h:outputText value="In Meteocal there are two kind of visibility for both 
                                      calendar and events: Private and Public (both the calendar and 
                                      the events are setted Private by default). If your calendar 
                                      is Public all your Public events are shown with details and 
                                      for Private ones is just shown a symbol to show that on that 
                                      day you're busy (no detail will be shown). If your calendar 
                                      is Private your Private events will not be shown to other users, 
                                      your privacy is safe. Public ones are shown with all details like
                                      in Public calendar."></h:outputText>
                        
                        
                    </p:fieldset>
                    
                    <h:panelGrid id="visibilityType" columns="2" >
                        
                        <h:outputText value="Your visibility is: "/>
                        
                        <h:outputText value="#{editProfile.visibility}"/>
                        
                        <p:commandButton value="Set Public" update="_visibilityForm_visibilityType" action="#{editProfile.setPublic}"/>
                        
                        <p:commandButton value="Set Private" update="_visibilityForm_visibilityType" action="#{editProfile.setPrivate}"/>
                        
                        <p:commandButton value="Back"   update="@all" action="#{editProfile.abort}"/>
                        
                    </h:panelGrid>
                    </p:panel>
                </h:form>    
                
            </ui:define>

        </ui:composition>

    </body>
</html>
